<?php 
	require "kooltabs/kooltabs.php";
	$kts = new KoolTabs("kts");
	$kts->styleFolder = "kooltabs/styles/default";
	$kts->addTab("root","home","Home",null,true);	
	$kts->addTab("root","products","Products");
	$kts->addTab("root","services","Services");
	$kts->addTab("root","company","Company");
	$kts->addTab("root","contactus","Contact us");
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
 <head>
 	<title>KoolTabs - How to add tab at server-side</title>
	<META http-equiv=Content-Type content="text/html; charset=utf-8">
	<link rel="stylesheet" href="style.css"/>
 </head>
 <body class="documentBody">
 	<form id="form1" method="post">
	<a href="index.php">« back</a>
	<div class="title">KoolTabs - How to add tab at server-side</div>
	<div class="indent firstline_indent indent_right bottomspacing">
		<code>$kts->addTab($parentid,$id,$text,[$link],[$selected]);</code>
	</div>
	<div class="sectionHeader">Show</div>
	<div class="indent indent_right topspacing bottomspacing">	
		<?php echo $kts->Render();?>

		<br/>
		<br/>
		<br/>
	</div>
	
 	</form>
	<!-- Links -->
	<div class="sectionHeader">Links</div>
	<div class="bottomspacing">
		<ul>
			<li><a href="http://www.koolphp.net/support/demos/#kooltabs.style_default" target="_blank">Online demo of this example</a></li>
			<li>
				<a href="http://www.koolphp.net/support/docs/#kts_overview" target="_blank">Documentation:</a>
				<ul>
					<li><a href="http://www.koolphp.net/support/docs/#kts_ss_kooltabs" target="_blank">KoolTabs::addTab()</a></li>
					
					
				</ul>
				<li><a href="mailto:support@koolphp.net?Subject=style_kooltabs_default.php">Need Assistance</a></li>			
			</li>
		</ul>
	</div>	
	
 </body>
</html>